public class GeneratorConstant {

    public static final String MAPPER_MODEL = "genshang-data/data-mapper";

    public static final String MODEL = "genshang-data/data-model";

        public static final String SERVICE_MODEL = "genshang-wechat-service";
//    public static final String SERVICE_MODEL = "genshang-crm-service";

    public static final String PORTAL_MODEL = "genshang-wechat-portal";

//    public static final String PORTAL_MODEL = "genshang-crm-portal";


    //    public static final String[] MODELS = {SERVICE_MODEL};
    public static final String[] MODELS = {MAPPER_MODEL, MODEL, SERVICE_MODEL, PORTAL_MODEL};

    public static final String OUT_PUT_DIR = "/src/main/java";

    public static final String AUTHOR = "Alex";

    public static final boolean IS_FIRST_TIME_GENERATOR = true;

    // 需要生成的表
    public static final String[] TABLES =
            {
//                    "CUSTOMERLIST",
//                    "ACCUMULATELISTTABLE",
//                    "BANNER_INFO",
//                    "record1",
//                    "GENSHANGUSERLIST"
//                    "ROLELIST"
//                    "CONSUMPTIONLIST"
                    "COUPONLIST",
//                    "ACCUMULATELISTTABLE",
//                    "ACCUMULATEGOODSLIST"
            };

    //需要去掉的表前缀
    public static final String TABLE_PREFIX = "";

    // 设置xml文件输出路径
    public static final String XML_OUT_PATH = System.getProperty("user.dir") + "/genshang-data/data-mapper/src/main/resources/mapper/";

    /**
     * 自定义文件命名，注意 %s 会自动填充表实体属性！
     */
    public static class GLOBAL_CONFIG {
        public static final String MAPPER_NAME = "%sMapper";
        public static final String XML_NAME = "%sMapper";
        public static final String SERVICE_NAME = "I%sService";
        public static final String SERVICE_IMPL_NAME = "%sServiceImpl";
        public static final String CONTROLLER_NAME = "%sController";
    }

    /**
     * 数据源配置信息
     */
    public static class DATASOURCE_CONFIG {
        public static final String URL = "jdbc:mysql://47.103.136.116:16603/shang03";
        public static final String SCHEMA_NAME = "public";
        public static final String DRIVER_NAME = "com.mysql.cj.jdbc.Driver";
        public static final String USERNAME = "root";
        public static final String PASSWORD = "dbpass";
    }

    /**
     * 包路径配置
     */
    public static class PACKAGE_CONFIG {
        // 项目内公共路径
        public static final String PARENT = "com.genshang.restaurant";

        // 控制层包
        public static final String CONTROLLER = "controller";

        // 实体类包
        public static final String ENTITY = "entity";
        public static final String MAPPER = "mapper";

        // service层下业务分包在这里配置
        public static final String SERVICE = "service";
        public static final String SERVICE_IMPL = "impl";
    }

}
